package com.qzd.springcloud.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.qzd.springcloud.server.DeprServerFeignClien;
import com.qzd.springclude.entity.Dept;


@Controller
public class DateController {
	@Autowired
	private DeprServerFeignClien deptserver;
	
	@PostMapping(value="/dept/findbyid")
	@ResponseBody
	private Dept getById(Integer id){
		System.out.println("**********************"+id);
	   return deptserver.findByid(id);
	}

}
